package org.onvivals.module.pms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.onvivals.common.base.BaseEntity;

import java.io.Serial;

@Schema(description="角色性格配置表")
@Data
@TableName(value = "pms_role_individuality")
public class PmsRoleIndividuality extends BaseEntity<PmsRoleIndividuality> {

	@Serial
	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.ASSIGN_ID)
	@JsonSerialize(using= ToStringSerializer.class)
	@Schema(description="ID")
	private Long id;

	@Schema(description="角色ID")
	private Long roleId;

	@Schema(description="个性名称")
	private String name;

	@Schema(description="提示语")
	private String prompt;

	@Schema(description="简介")
	private String introduction;

	@TableField(value = "sort")
	@Schema(description="排序")
	private Integer sort;

}
